//
//  NYDelSubjectRequest.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/11.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYDelSubjectRequest.h"

@implementation NYDelSubjectRequest
+ (instancetype)requestWithType:(NYDelObjectType)type param:(NSDictionary *)param
{
        NYDelSubjectRequest *request = [super requestWithParams:param];
        request.delType = type;
        return request;
}
- (NetworkRequestType)requestType
{
        return NetwrokRequestTypePOST;
}
- (NSString *)url
{
        switch (self.delType) {
                case NYDelObjectTypeCollection:
                        return @"";
                        break;
                case NYDelObjectTypeMsg:
                        return @"/member/messageDel";
                        break;
                case NYDelObjectTypeGoodSubject:
                        return @"/member/delGoodQuestion";
                        break;
                case NYDelObjectTypeWrongSubject:
                        return @"/member/delWrongQuestion";
                        break;
                case NYDelObjectTypeClasses:
                        return @"/member/delClass";
                        break;
                case NYDelObjectTypeExamine:
                        return @"/member/delExamine";
                        break;
                case NYDelObjectTypeQuestion:
                        return @"";
                        break;
                case NYDelObjectTypeVideoMsg:
                        return @"/member/delMess";
                        break;
                case NYDelObjectTypeExamineMsg:
                        return @"/member/delTestMess";
                        break;
                default:
                        break;
        }
        return @"";
}
- (NSMutableDictionary *)defaultParams
{
        return @{
                 kRequestKeyUser_ID : NOT_NULL_STRING_DEFAULT_EMPTY(NYUserManager.user_id),
                 kRequestKeyChannel : @(NYUserManager.channelID),
                 kRequestKeyLoginCode : NOT_NULL_STRING_DEFAULT_EMPTY(NYUserManager.logincode),
                 }.mutableCopy;
}

@end
